package com.sztx.worker_monitor.web.model;


import org.springframework.ui.Model;

public class GlobalSeting {
	static public enum MenuIndex{
		Index,About
	}
	
	
	static public void setLogonAndMenu(Model model,MenuIndex menuIndex){
		
		switch(menuIndex){
		case About:
			model.addAttribute("activeMenu", 3);
			break;
			
		case Index:
		default:
			model.addAttribute("activeMenu", 1);
			break;
		}
	}

}
